package com.ruoyi.law.domain.query;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * 律师订单
 * </p>
 *
 * @author code
 * @since 2022-11-27
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "LawOrder查询对象", description = "律师订单")
public class LawOtherOrderQuery extends BaseEntity {

    @ApiModelProperty(value = "咨询或服务id")
    private Long consultingId;

    @ApiModelProperty(value = "订单时长")
    private String orderTime;

    @ApiModelProperty(value = "订单类型(2.咨询订单,3.服务订单)")
    private String orderType;

    @NotNull(message = "金额不能为空")
    @DecimalMin(value = "1", message = "金额不能小于1元")
    @ApiModelProperty(value = "金额")
    private BigDecimal price;

    @NotBlank(message = "支付方式不能为空")
    @ApiModelProperty(value = "支付方式(0:垫资支付，1:线下支付，2:微信支付)")
    private String payType;

    @ApiModelProperty(value = "律师id")
    private Long teamId;

    @ApiModelProperty(value = "填写的手机号")
    private String fillInPhone;

}
